// 当前这个模块:api进行统一管理
import requests from "./request";

// 登录接口
export const reqLogin = (data) => requests.post('/api/login', data)
// 注册接口
export const reqRegister = (data) => requests.post('/api/register', data)
// 上传头像
export const reqheadpic = (data) => requests.post('/dev/updateAvatar', data)
// 根据id获取书信数据信息
export const reqgetletterByid = (id) => requests.get(`/api/getletterByid/${id}`)
// 更新或插入书信数据信息
export const saveLetter = (data) => requests.post('/api/save/letter', data)
// 获取个人信息资料
export const getUserinfo = () => requests.get('/dev/getUserinfoByid')
// 保存个人信息资料
export const saveUserinfo = (data) => requests.post('/dev/saveUserinfo', data)
// 获取头像
export const getAvatarByid = () => requests.get('/dev/getAvatarByid')
// 签到
export const signInByid = () => requests.post('/dev/signInByid')
// 发布墙
export const publish = (data) => requests.post('/dev/publish', data)
// 处理发布墙图片上传文件
export const handleformData = (data) => requests.post('/dev/handleformData', data)
// 获取我的发布
export const mypublish = (num) => requests.get(`/dev/mypublish/${num}`)
// 获取首页综合板块数据
export const getHomeInfo = (num) => requests.get(`/api/gethomeinfo/${num}`)
// 获取一起玩板块数据
export const getplayinfo = (num) => requests.get(`/api/getplayinfo/${num}`)
// 获取每日分享板块数据
export const getshareinfo = (num) => requests.get(`/api/getshareinfo/${num}`)
// 获取其他板块数据
export const getelseinfo = (num) => requests.get(`/api/getelseinfo/${num}`)
// 获取心愿弹幕数据
export const getwishbarrage = () => requests.get('/dev/getwishbarrage')
// 获取心愿墙时间数据列表
export const getwishdata = (num) => requests.get(`/dev/getwishdata/${num}`)
// 获取心愿墙热度数据列表
export const getwishdataByheat = (num) => requests.get(`/dev/getwishdataByheat/${num}`)
// 发送流动弹幕
export const publishwishdm = (data) => requests.post('/dev/publishwishdm', data)
// 获取祝福墙时间数据列表
export const getblessing = (num) => requests.get(`/dev/getblessing/${num}`)
// 获取祝福墙热度数据列表
export const getblessingByheat = (num) => requests.get(`/dev/getblessingByheat/${num}`)
// 获取表白墙时间数据列表
export const getconfession = (num) => requests.get(`/dev/getconfession/${num}`)
// 获取表白墙热度数据列表
export const getconfessionByheat = (num) => requests.get(`/dev/getconfessionByheat/${num}`)
// 查询个人机遇信息
export const getluckinfo = () => requests.get('/dev/getluckinfo')
// 发布机遇
export const publishluck = (data) => requests.post('/dev/publishluck', data)
// 获取最新机遇
export const getluckBytimer = (num) => requests.get(`/dev/getluckBytimer/${num}`)
// 判断token是否过期
export const isPastdue = () => requests.get('/dev/isPastdue')
// 与其机遇
export const withhisluck = (data) => requests.post('/dev/withhisluck', data)
// 获取我的关系数据
export const getrealtion = () => requests.get('/dev/getrealtion')
// 发布评论
export const publishcomment = (data) => requests.post('/dev/publishcomment', data)
// 获取一级评论区数据通过time时间排序
export const getcommentByid = (id, num) => requests.get(`/dev/getcommentByid/${id}/${num}`)
// 获取一级评论区数据通过hint热度排序
export const getcommentByhint = (id, num) => requests.get(`/dev/getcommentByhint/${id}/${num}`)
// 根据id获取二级的评论
export const getreplyByid = (id) => requests.get(`/dev/getreplyByid/${id}`)
// 点赞或取消点赞
export const updatelike = (data) => requests.post('/dev/updatelike', data)
// 举报墙
export const reportwalls = (data) => requests.post('/dev/reportwalls', data)
// 加入喜欢
export const joinlikeByid = (data) => requests.post('/dev/joinlikeByid', data)
// 查询我的喜欢
export const mycollect = (num) => requests.get(`/dev/mycollect/${num}`)
// 获取热门搜索榜单数据
export const gethintlist = () => requests.get('/dev/gethintlist')
// 通过关键字搜索
export const getsearchBykeyword = (keyword) => requests.get(`/dev/getsearchBykeyword/${keyword}`)
// 查询通知用户
export const getinformuser = (inform) => requests.get(`/dev/getinformuser/${inform}`)
// 访问用户信息
export const visitUserinfo = (uuId) => requests.get(`/dev/visitUserinfo/${uuId}`)
// 访问用户发布
export const visitmypublish = (uuId, num) => requests.get(`/dev/visitmypublish/${uuId}/${num}`)
// 访问我的喜欢
export const visitmycollect = (uuId, num) => requests.get(`/dev/visitmycollect/${uuId}/${num}`)
// 访问我的关系
export const visitrealtion = (uuId) => requests.get(`/dev/visitrealtion/${uuId}`)
// 获取我的消息提示数
export const gethintcount = () => requests.get('/dev/gethintcount')
// 获取我的消息通知
export const getinfromData = () => requests.get('/dev/getinfromData')
